package com.admin.model;

public class ServiceRegistryState {
    private static boolean isNacosEnabled = false;
    private static boolean isEurekaEnabled = false;
    private static boolean isZookeeperEnabled = false;
    private static boolean isAnotherServiceEnabled = false; // 这里可以根据需要添加更多服务

    public static boolean isNacosEnabled() {
        return isNacosEnabled;
    }

    public static void setNacosEnabled(boolean nacosEnabled) {
        ServiceRegistryState.isNacosEnabled = nacosEnabled;
    }

    public static boolean isEurekaEnabled() {
        return isEurekaEnabled;
    }

    public static void setEurekaEnabled(boolean eurekaEnabled) {
        ServiceRegistryState.isEurekaEnabled = eurekaEnabled;
    }

    public static boolean isZookeeperEnabled() {
        return isZookeeperEnabled;
    }

    public static void setZookeeperEnabled(boolean zookeeperEnabled) {
        ServiceRegistryState.isZookeeperEnabled = zookeeperEnabled;
    }

    public static boolean isAnotherServiceEnabled() {
        return isAnotherServiceEnabled;
    }

    public static void setAnotherServiceEnabled(boolean anotherServiceEnabled) {
        ServiceRegistryState.isAnotherServiceEnabled = anotherServiceEnabled;
    }
}

